package com.yang.design.create.singletonPattern;

public enum Singleton {
    INSTANCE;
    private String name;
    private int id;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public static Singleton getInstance() {
        return INSTANCE;
    }
}
